//
//  LyTableViewCell.m
//  MailList
//
//  Created by dllo on 15/11/21.
//  Copyright © 2015年 KPY. All rights reserved.
//

#import "LyTableViewCell.h"

@implementation LyTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        self.nameLabel = [[UILabel alloc] init];
        
        [self.contentView addSubview:self.nameLabel];
        
        self.sexLabel = [[UILabel alloc] init];
        
        [self.contentView addSubview:self.sexLabel];
        
        self.numberLabel = [[UILabel alloc] init];
        
        [self.contentView addSubview:self.numberLabel];
        
        
    }
    
    return self;
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.nameLabel.frame = CGRectMake(30, 15, self.contentView.frame.size.width, 40);
    
//    self.nameLabel.backgroundColor = [UIColor grayColor];
    
    self.sexLabel.frame = CGRectMake(30, 55, self.contentView.frame.size.width, 40);
    
//    self.sexLabel.backgroundColor = [UIColor grayColor];
    
    self.numberLabel.frame = CGRectMake(30, 95, self.contentView.frame.size.width, 40);
    
//    self.numberLabel.backgroundColor = [UIColor grayColor];
    
}














- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
